package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the mv_sp_bo_sales_report_ugp table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="mv_sp_bo_sales_report_ugp"
 */

public abstract class BasemvSpBoSalesReportUgp  implements Serializable {

	public static String REF = "mvSpBoSalesReportUgp";
	public static String PROP_UGP_RANG = "ugpRang";
	public static String PROP_MARCHE_NAME = "marcheName";
	public static String PROP_PM = "pm";
	public static String PROP_CODE_UGP = "codeUgp";
	public static String PROP_PM_CC = "pmCc";
	public static String PROP_MONTH = "month";
	public static String PROP_PM1 = "pm1";
	public static String PROP_PM_CC1 = "pmCc1";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_PRODUIT = "produit";
	public static String PROP_PM_CF = "pmCf";
	public static String PROP_LIB_UGP = "libUgp";
	public static String PROP_ID = "id";
	public static String PROP_PM_CF1 = "pmCf1";
	public static String PROP_CODE_PRESC_IMS = "codePrescIms";
	public static String PROP_CS_MONTH = "csMonth";


	// constructors
	public BasemvSpBoSalesReportUgp () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoSalesReportUgp (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String marcheName;
	private java.lang.String produit;
	private java.lang.Integer csMonth;
	private java.util.Date month;
	private java.lang.String ugaCode;
	private java.lang.String codeUgp;
	private java.lang.String libUgp;
	private java.lang.String codePrescIms;
	private java.lang.Double pm;
	private java.lang.Double pmCc;
	private java.lang.Double pmCf;
	private java.lang.Double pm1;
	private java.lang.Double pmCc1;
	private java.lang.Double pmCf1;
	private java.lang.Integer ugpRang;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: MARCHE_NAME
	 */
	public java.lang.String getMarcheName () {
		return marcheName;
	}

	/**
	 * Set the value related to the column: MARCHE_NAME
	 * @param marcheName the MARCHE_NAME value
	 */
	public void setMarcheName (java.lang.String marcheName) {
		this.marcheName = marcheName;
	}



	/**
	 * Return the value associated with the column: PRODUIT
	 */
	public java.lang.String getProduit () {
		return produit;
	}

	/**
	 * Set the value related to the column: PRODUIT
	 * @param produit the PRODUIT value
	 */
	public void setProduit (java.lang.String produit) {
		this.produit = produit;
	}



	/**
	 * Return the value associated with the column: CS_MONTH
	 */
	public java.lang.Integer getCsMonth () {
		return csMonth;
	}

	/**
	 * Set the value related to the column: CS_MONTH
	 * @param csMonth the CS_MONTH value
	 */
	public void setCsMonth (java.lang.Integer csMonth) {
		this.csMonth = csMonth;
	}



	/**
	 * Return the value associated with the column: MONTH
	 */
	public java.util.Date getMonth () {
		return month;
	}

	/**
	 * Set the value related to the column: MONTH
	 * @param month the MONTH value
	 */
	public void setMonth (java.util.Date month) {
		this.month = month;
	}



	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: C_UGP
	 */
	public java.lang.String getCodeUgp () {
		return codeUgp;
	}

	/**
	 * Set the value related to the column: C_UGP
	 * @param codeUgp the C_UGP value
	 */
	public void setCodeUgp (java.lang.String codeUgp) {
		this.codeUgp = codeUgp;
	}



	/**
	 * Return the value associated with the column: L_UGP
	 */
	public java.lang.String getLibUgp () {
		return libUgp;
	}

	/**
	 * Set the value related to the column: L_UGP
	 * @param libUgp the L_UGP value
	 */
	public void setLibUgp (java.lang.String libUgp) {
		this.libUgp = libUgp;
	}



	/**
	 * Return the value associated with the column: C_PRESC_IMS
	 */
	public java.lang.String getCodePrescIms () {
		return codePrescIms;
	}

	/**
	 * Set the value related to the column: C_PRESC_IMS
	 * @param codePrescIms the C_PRESC_IMS value
	 */
	public void setCodePrescIms (java.lang.String codePrescIms) {
		this.codePrescIms = codePrescIms;
	}



	/**
	 * Return the value associated with the column: PM
	 */
	public java.lang.Double getPm () {
		return pm;
	}

	/**
	 * Set the value related to the column: PM
	 * @param pm the PM value
	 */
	public void setPm (java.lang.Double pm) {
		this.pm = pm;
	}



	/**
	 * Return the value associated with the column: PM_CC
	 */
	public java.lang.Double getPmCc () {
		return pmCc;
	}

	/**
	 * Set the value related to the column: PM_CC
	 * @param pmCc the PM_CC value
	 */
	public void setPmCc (java.lang.Double pmCc) {
		this.pmCc = pmCc;
	}



	/**
	 * Return the value associated with the column: PM_CF
	 */
	public java.lang.Double getPmCf () {
		return pmCf;
	}

	/**
	 * Set the value related to the column: PM_CF
	 * @param pmCf the PM_CF value
	 */
	public void setPmCf (java.lang.Double pmCf) {
		this.pmCf = pmCf;
	}



	/**
	 * Return the value associated with the column: PM_1
	 */
	public java.lang.Double getPm1 () {
		return pm1;
	}

	/**
	 * Set the value related to the column: PM_1
	 * @param pm1 the PM_1 value
	 */
	public void setPm1 (java.lang.Double pm1) {
		this.pm1 = pm1;
	}



	/**
	 * Return the value associated with the column: PM_CC_1
	 */
	public java.lang.Double getPmCc1 () {
		return pmCc1;
	}

	/**
	 * Set the value related to the column: PM_CC_1
	 * @param pmCc1 the PM_CC_1 value
	 */
	public void setPmCc1 (java.lang.Double pmCc1) {
		this.pmCc1 = pmCc1;
	}



	/**
	 * Return the value associated with the column: PM_CF_1
	 */
	public java.lang.Double getPmCf1 () {
		return pmCf1;
	}

	/**
	 * Set the value related to the column: PM_CF_1
	 * @param pmCf1 the PM_CF_1 value
	 */
	public void setPmCf1 (java.lang.Double pmCf1) {
		this.pmCf1 = pmCf1;
	}



	/**
	 * Return the value associated with the column: UGP_RANG
	 */
	public java.lang.Integer getUgpRang () {
		return ugpRang;
	}

	/**
	 * Set the value related to the column: UGP_RANG
	 * @param ugpRang the UGP_RANG value
	 */
	public void setUgpRang (java.lang.Integer ugpRang) {
		this.ugpRang = ugpRang;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportUgp)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportUgp mvSpBoSalesReportUgp = (com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportUgp) obj;
			if (null == this.getId() || null == mvSpBoSalesReportUgp.getId()) return false;
			else return (this.getId().equals(mvSpBoSalesReportUgp.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}